package com.o2opuzi.lib.db;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;


public class Terms {
	
	private List<Collection<Object>> termArray = new ArrayList<Collection<Object>>();
	

	
	@SafeVarargs
	public Terms(Collection<Object>...terms) {
		for (int i = 0; i < terms.length; i++) {
			termArray.add(terms[i]);
		}
	}
	
	public Terms(Object[]... objects){
		for (Object[] objects2 : objects) {
			List<Object> list = Arrays.asList(objects2);
			termArray.add(list);
		}
	}


	public List<Collection<Object>> getTermArray() {
		return termArray;
	}

	
	public static Terms eq(String name,Object value){
		return new Terms(new Object[]{new Object[]{name,"=",value}});
	}
	
	
	
}
